package com.lc.YYGH.oss.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class ConstantOssPropertiesUtil implements InitializingBean {
    private String endpoint="oss-cn-beijing.aliyuncs.com";
    private String accessKeyId="LTAI5tJKiodXTurSUhr9o7u6";
    private String secret="ejf6cDQ22WvPSicwGBrT3K6Db8Nxg9";
    private String bucket="yygh-oss11";
    public static String ENDPOINT;
    public static String ACCESS_KEY_ID;
    public static String SECRET;
    public static String BUCKET;

    @Override
    public void afterPropertiesSet() throws Exception {
        ENDPOINT=endpoint;
        ACCESS_KEY_ID=accessKeyId;
        SECRET=secret;
        BUCKET=bucket;
    }
}
